$(document).ready(function(){ 
	loadDetail(id);
});
function loadDetail(queueName){
	$.ajax({
        method : 'GET',
        url : constUrl + 'conf/queues/'+queueName+'.action',
        dateType:'json',
        success : function(data) {
        	if(data.resultCode=='000000'){
        		var queue=data.data;
        		$("#QUEUE_NAME").html("<span>"+(isBlank(queue.qUEUE_NAME)==true?"":queue.qUEUE_NAME)+"</span>");
        		$("#PREEMPTION").html("<span>"+(isBlank(queue.pREEMPTION)==true?"":queue.pREEMPTION)+"</span>");
        		$("#PRE_EXE").html("<span>"+(isBlank(queue.pRE_EXEC)==true?"":queue.pRE_EXEC)+"</span>");
        		$("#POST_EXEC").html("<span>"+(isBlank(queue.pOST_EXEC)==true?"":queue.pOST_EXEC)+"</span>");
        		$("#PRIORITY").html("<span>"+queue.pRIORITY+"</span>");
        		$("#QJOB_LIMIT").html("<span>"+queue.qJOB_LIMIT+"</span>");
        		$("#RUNLIMIT").html("<span>"+queue.rUNLIMIT+"</span>");
        		$("#MEMLIMIT").html("<span>"+queue.mEMLIMIT+"</span>");
        		$("#RES_REQ_MEM").html("<span>"+queue.rES_REQ_MEM+"</span>");
        		$("#RES_REQ_SWAP").html("<span>"+queue.rES_REQ_SWAP+"</span>");
        		/*$("#name").html("<span>"+queue.QUEUE_NAME+"</span>");
        		$("#name").html("<span>"+queue.QUEUE_NAME+"</span>");*/
         }else
           layer.msg(data.desc)        
          },
        error:function(){
        	layer.msg('服务器内部错误，操作失败')
          }
	 });
}